package net.message {

	import net.MessageType;
	import globals.Global;
	
	/**
	 * 文件名：CGInserHeroMessage.as
	 * <p>
	 * 功能：在指定地方放置一个英雄
	 * <p>
	 * 版本：1.0.0
	 * <p>
	 * 作者：Builderd by AppTools
	 * <p>
	 */
	public class CGInserHeroMessage extends BaseMessage {

		public function CGInserHeroMessage() {
			type = MessageType.CGInserHero;
			super();
		}
		
		override public function writeMessage(... agrs):void {
			//写入英雄id
			body.writeInt(agrs[0]);

			
			//写入放置英雄的x位置
			body.writeInt(agrs[1]);

			
			//写入放置英雄的y位置
			body.writeInt(agrs[2]);

			
			Global.serviceManager.send(this);
	
		}
	}
}
